<!DOCTYPE html>
<html>
<head>
    <title>用户管理</title>
    <meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






</head>
<body class="ren-body">
<div id="rrapp" v-cloak>
    <div class="list-header-content-box">
        <div class="list-header-card display">
            <div
                    v-for="(item, index) in copyTypeLst"
                    :key="index"
                    class="flex" :class="index === copyTypeIndex ? 'active' : ''" @click="changeType(item,index)" style="cursor:pointer;">
                <div class="list-header-card-text">{{item.name}}</div>
                <div class="list-header-card-number">{{item.value}}</div>
            </div>
        </div>
    </div>

    <div class="list-search-title-box">
        <form class="layui-form" style="box-shadow: 0 0 20px #eee;padding-right: 15px;">
            <section class="jxc-section" style="display: flex;align-items: flex-start;white-space: nowrap;">
                <div class="card layui-row" style="flex: 1">
                    <div class="layui-form-item">
                        <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                            <label class="layui-form-label">车牌号/车架号:</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input searchVal" v-model="q.carNo" placeholder="请输入车牌号/车架号" />
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                            <label class="layui-form-label">发起人:</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input searchVal" v-model="q.applyUser" placeholder="请输入发起人" />
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                            <label class="layui-form-label">是否已读:</label>
                            <div class="layui-input-inline">
                                <select lay-search="" v-model="q.isRead" class="layui-select" lay-filter="isReadSelect">
                                    <option value="">全部</option>
                                    <option value='1'>是</option>
                                    <option value='2'>否</option>
                                </select>
                            </div>
                        </div>
                        <section v-show="isFilter">
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType != 11 && q.businessType != 7 && q.businessType != 9">
                                <label class="layui-form-label">订单编号:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.orderNo" placeholder="请输入订单编号" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType != 11 && q.businessType != 7 && q.businessType != 9">
                                <label class="layui-form-label">客户名称:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.customName" placeholder="请输入客户名称" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType != 11 && q.businessType != 7 && q.businessType != 9">
                                <label class="layui-form-label">{{q.businessType == 6 ? '售卖方':'出租方'}}:</label>
                                <div class="layui-input-inline">
                                    <select  lay-filter="lessorSelect"  v-model="q.lessor">
                                        <option value="">请选择{{q.businessType == 6 ? '售卖方':'出租方'}}</option>
                                        <option v-for="item in lessorLst" :value="item.deptId">{{item.name}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType != 11 && q.businessType != 7 && q.businessType != 9">
                                <label class="layui-form-label">客户类型:</label>
                                <div class="layui-input-inline">
                                    <select lay-search="" v-model="q.customType" class="layui-select" lay-filter="customTypeSelect">
                                        <option value="">全部</option>
                                        <option value='1'>企业</option>
                                        <option value='2'>个人</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType > 6">
                                <label class="layui-form-label">品牌/车系/车型:</label>
                                <div class="layui-input-inline">
                                    <input type="text" id="carBrandSeriesModel" class="layui-input searchVal" placeholder="品牌/车系/车型" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType == 7">
                                <label class="layui-form-label">移库原因:</label>
                                <div class="layui-input-inline">
                                    <select v-model="q.transferReason" lay-filter="transferReasonSerch">
                                        <option value="">请选择移库原因</option>
                                        <option v-for ="(item,index) in transferReasonList" :value="item.code">{{item.value}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType == 7">
                                <label class="layui-form-label">当前仓库:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.depotName" placeholder="请输入当前仓库" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType == 7">
                                <label class="layui-form-label">移入仓库:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.transferDepotName" placeholder="请输入移入仓库" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType == 10">
                                <label class="layui-form-label">维修厂:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.serviceName" placeholder="请输入维修厂" />
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType == 10">
                                <label class="layui-form-label">是否已结算:</label>
                                <div class="layui-input-inline">
                                    <!--费用结算 1未结算 2已结算-->
                                    <select  lay-filter="costSettlement" v-model="q.costSettlement">
                                        <option value="">请选择是否已结算</option>
                                        <option value=1>未结算</option>
                                        <option value=2>已结算</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType == 10">
                                <label class="layui-form-label">维修开始时间:</label>
                                <div class="layui-input-inline">
                                    <input v-model="q.repairStartDate" id="repairStartDate" type="text" class="layui-input searchVal"   placeholder="请选择维修开始时间" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType == 10">
                                <label class="layui-form-label">维修结束时间：</label>
                                <div class="layui-input-inline">
                                    <input v-model="q.repairEndDate" id="repairEndDate" type="text" class="layui-input searchVal"   placeholder="请选择维修结束时间" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType == 8">
                                <label class="layui-form-label">事故等级:</label>
                                <div class="layui-input-inline">
                                    <select  lay-filter="outLevelFilter" v-model="q.outLevel">
                                        <option value="">请选择事故等级</option>
                                        <option v-for="item in outLevelList" :value="item.code">{{item.value}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType == 8">
                                <label class="layui-form-label">责任方:</label>
                                <div class="layui-input-inline">
                                    <select  lay-filter="responsiblePartyFilter" v-model="q.responsibleParty">
                                        <option value="">请选择责任方</option>
                                        <option value=5>0%</option>
                                        <option value=1>20%</option>
                                        <option value=2>30%</option>
                                        <option value=3>50%</option>
                                        <option value=6>70%</option>
                                        <option value=4>100%</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12" v-show="q.businessType == 8">
                                <label class="layui-form-label">出险时间:</label>
                                <div class="layui-input-inline">
                                    <input v-model="q.outDate" id="outDate" type="text" class="layui-input searchVal"   placeholder="请选择出险时间" readonly/>
                                </div>
                            </div>

                            <div class="flex-box layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                <label class="layui-form-label">发起时间:</label>
                                <div class="list-search-sup-title new-layui-title">
                                    <div class="task-content-box-tab">
                                        <div class="display task-content-box-tab layui-col-md8 layui-col-sm8 layui-col-xs12"
                                             type="applyTimeType">
                                            <div value="0"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">昨天</div>
                                            <div value="1"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">今天</div>
                                            <div value="2"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上周</div>
                                            <div value="3"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本周</div>
                                            <div value="4"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">上月</div>
                                            <div value="5"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本月</div>
                                            <div value="6"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本季</div>
                                            <div value="7"  class="layui-col-md2 layui-col-sm2 layui-col-xs2">本年</div>
                                        </div>
                                        <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
                                            <input type="text" class="layui-input" id="applyTimeStr"
                                                   v-model="q.applyTimeStr" readonly placeholder="选择日期范围"
                                                   style="width: 300px;" autocomplete="off">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </section>
                    </div>
                </div>
                <div style="display: flex;align-items: center;">
                    <a class="layui-btn search-btn" @click="query">查询</a>
                    <a class="layui-btn reset-btn" @click="rest">重置</a>
                    <div @click="bindFilter" style="margin-left: 10px;cursor: pointer;user-select: none;">
                        <span style="color: #2251C5;">高级筛选</span>
                        <img src="../../../statics/images/高级筛选@2x.png" style="width:14px">
                    </div>
                </div>
            </section>
        </form>
    </div>

    <table class="layui-hide" id="grid" lay-filter="grid"></table>
    <!-- 流程抄送详情-->
    <form  v-show="detailForm" class="layui-form ren-form" id="detailForm">
        <div>
            <iframe id="processCopy" class="larry-iframe" data-id='0' :src="businessContent"  scrolling="yes" frameborder="0" style="width:100%;min-height:300px;overflow:visible;background:#fff;" ></iframe>
        </div>
        <div>
            <section class="jxc-section">
                <legend class="aTitle">审批记录</legend>
                <hr class="layui-bg-gray">
            </section>
            <div id="approveLog" style="padding: 0px 50px 0px 50px;">
            </div>
        </div>
    </form>

    <!-- 表单 -->
    <form v-show="showForm" class="layui-form ren-form" id="editForm">
        <div class="layui-form-item">
            <label class="layui-form-label">实例ID</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="processCopy.instanceId" autocomplete="off" placeholder="实例ID" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">业务ID</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="processCopy.businessId" autocomplete="off" placeholder="业务ID" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">当前环节ID</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="processCopy.nodeId" autocomplete="off" placeholder="当前环节ID" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">抄送用户ID</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="processCopy.copyUserId" autocomplete="off" placeholder="抄送用户ID" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">抄送用户名称</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="processCopy.copyUserName" autocomplete="off" placeholder="抄送用户名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">抄送时间</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="processCopy.copyTime" autocomplete="off" placeholder="抄送时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否已读 1是 2否</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="processCopy.isRead" autocomplete="off" placeholder="是否已读 1是 2否" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">阅读时间</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="processCopy.readTime" autocomplete="off" placeholder="阅读时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="saveOrUpdate">确定</button>
            </div>
        </div>
    </form>
</div>

<!--操作-->
<script type="text/html" id="barTpl">
    <a class="layui-grid-btn-xs" lay-event="detail" more-btn-index="{{d.LAY_INDEX-1}}">详情</a>
<!--    <#if shiro.hasPermission("mark:processcopy:update")>-->
<!--    <a class="layui-btn layui-btn-xs" lay-event="edit">修改</a>-->
<!--    </#if>-->
<!--    <#if shiro.hasPermission("mark:processcopy:delete")>-->
<!--    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>-->
<!--    </#if>-->
</script>

<script src="../../statics/js/modules/activiti/processcopy.js?_${.now?long}"></script>
</body>
</html>
